<?php
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

// Set the table directory
JTable::addIncludePath( JPATH_COMPONENT.DS.'tables' );

if (!JRequest::getWord('view')){
			JRequest::setVar('view', 'newsletters' );
			JRequest::setVar('layout', 'default' );
}

// Require the base controller
$path = JPATH_COMPONENT_SITE.DS.'controllers'.DS.JRequest::getWord('view').'.php';

require_once ($path);

// Create the controller
$classname	= 'LettermanController'.ucfirst(JRequest::getWord('view'));
$controller = new $classname( );

// Perform the Request task
$controller->execute(JRequest::getCmd('task'));

// Redirect if set by the controller
$controller->redirect();
?>